<?php slot('sub', $sub); ?>

<div class="center">
    <div id="center_conteiner" class="clearfix">
        <div class="center_sub_conteiner">

            <div class="center_block">
                <div class="header_center_block"><span>Providers</span></div>
                
                <div class="pages_list">
                    <ul>
                        <li><<</li>
                        <li class='active'>1</li>
                        <li>>></li>
                    </ul>
                </div>
                
                <div class="users_title">
                    <div class="users_title_id">id</div>
                    <div class="users_title_title">Name</div>
                    <div class="users_title_first_name">Short name</div>
                    <div class="users_title_status">Update time</div>
                    <div class="add_new_user"><a href="<?php echo url_for('addprovider'); ?>">Add</a></div>
                </div>
                
                <?php
                foreach ($providers as $p) {        
                    echo '<div class="user_line">'.
                    '<div class="user_line_id">'.$p->getId().'</div>' .
                    '<div class="user_line_title">'.$p->getName().'</div>'.
                    '<div class="user_line_name">'.$p->getShortName().'</div>'.
                    '<div class="user_line_status">'.$p->getUpdateTime().'</div>'.
                    '<div class="user_line_delete_button"><a href="'.url_for('editprovider', array('provider_id' => $p->getId())).'">Edit</a></div>'.
                    '</div>';
                }
                ?>
                
                <div class="pages_list">
                    <ul>
                        <li><<</li>
                        <li class='active'>1</li>
                        <li>>></li>
                    </ul>
                </div>
                
            </div>
        </div>
    </div>
</div>

